/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.tedu.mall.common.pojo.admin.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

@Data
@ApiModel("角色查询DTO")
public class RoleQueryDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 名称
     */
    @ApiModelProperty(
        value = "模糊名称", name = "name", example = "管理员")
    private String name;
    /**
     * 数据创建时间
     */
    @ApiModelProperty(
        value = "创建数据起始时间点",
        name = "startCreateTime",
        example = "2020-12-02 17:59:27")
    private LocalDateTime startCreateTime;
    @ApiModelProperty(
        value = "创建数据结束时间点",
        name = "endCreateTime",
        example = "2025-12-02 17:59:27")
    private LocalDateTime endCreateTime;

    /**
     * 数据最后修改时间
     */
    @ApiModelProperty(
        value = "修改数据起始时间点",
        name = "startModifiedTime",
        example = "2020-12-02 17:59:27")
    private LocalDateTime startModifiedTime;
    @ApiModelProperty(
        value = "修改数据结束时间点",
        name = "endModifiedTime",
        example = "2025-12-02 17:59:27")
    private LocalDateTime endModifiedTime;
    @ApiModelProperty(
        value = "页数", name = "page", example = "1")
    private Integer page;
    @ApiModelProperty(
        value = "条数", name = "pageSize", example = "5")
    private Integer pageSize;
    @ApiModelProperty(
        value = "排序字段", name = "orderField")
    private String orderField;
    @ApiModelProperty(
        value = "排序规则", name = "orderRule", example = "desc")
    private String orderRule;

    /**
     * 控制台打印测试
     *
     * @return
     */
    @Override
    public String toString() {
        return "RoleQueryDTO{" +
            "name='" + name + '\'' +
            ", startCreateTime=" + startCreateTime +
            ", endCreateTime=" + endCreateTime +
            ", startModifiedTime=" + startModifiedTime +
            ", endModifiedTime=" + endModifiedTime +
            ", page=" + page +
            ", pageSize=" + pageSize +
            ", orderField='" + orderField + '\'' +
            ", orderRule='" + orderRule + '\'' +
            '}';
    }
}
